package com.gwt.material.client.user.po;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *  实体类。
 *
 * @author zbr
 * @since 2024-08-26
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "t_user_source_rel")
public class UserSourceRel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @Id
    private String userId;

    /**
     * 用户来源ID
     */
    @Id
    private String relId;

    /**
     * 来源
     */
    private Integer source;

    /**
     * 最后登录时间
     */
    private LocalDateTime lastLoginTime;

    /**
     * refresh_token,用于令牌交换、更新
     */
    private String refreshToken;

}
